<?php

/**
 * 
 *
 * @version $Id: com_new_edit.inc.php,v 1.3 2004/08/17 21:58:04 phppc Exp $
 * @copyright 2003 
 **/
 		unset($allow_dba);
		$valid_id = $this->db_anzahl_zeilen("SELECT news_id FROM ".$this->config["prefix"]."main WHERE news_id = \"".$this->news_id."\"");
		$input_array = array("content");
		if($this->user_id == 0) array_push($input_array,"name","email");
		$valid_input = $this->uf_form_conf($input_array);
		if ($valid_input == 1 AND $valid_id == 1) {
			if ($this->fun_email_conf($_POST["email"]) == 1 OR $this->user_id != 0) {
			    $_POST = $this->uf_secure($_POST);
				if ($this->user_id > 0) {
					$_POST["name"] = "";
					$_POST["email"] = "";
				}
				$allow_dba = 1;
			}else $this->message_red[] = 3;   
		}else $this->message_red[] = 1;

?>